package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 历史信息对象 history_info
 * 
 * @author YDB
 * @date 2022-04-05
 */
public class HistoryInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 历史信息ID */
    @Excel(name = "历史信息ID")
    private Long historyInfoId;

    /** 检测类型 */
    @Excel(name = "检测类型", dictType = "detect_type")
    private Long  detectType;

    /** 提交数据 */
    @Excel(name = "提交数据",cellType = Excel.ColumnType.IMAGE,prompt="多张图片时，默认导出第一张")
    private String inputData;

    /** 检测结果 */
    @Excel(name = "检测结果",cellType = Excel.ColumnType.IMAGE,prompt="多张图片时，默认导出第一张")
    private String detectRes;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long  createrID;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String  createName;


    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreaterID() {
        return createrID;
    }

    public void setCreaterID(Long createrID) {
        this.createrID = createrID;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public void setHistoryInfoId(Long historyInfoId)
    {
        this.historyInfoId = historyInfoId;
    }

    public Long getHistoryInfoId() 
    {
        return historyInfoId;
    }
    public void setDetectType(Long  detectType)
    {
        this. detectType =  detectType;
    }

    public Long getDetectType()
    {
        return  detectType;
    }
    public void setDetectRes(String detectRes) 
    {
        this.detectRes = detectRes;
    }

    public String getDetectRes() 
    {
        return detectRes;
    }

    public String getInputData() {
        return inputData;
    }

    public void setInputData(String inputData) {
        this.inputData = inputData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("historyInfoId", getHistoryInfoId())
            .append("detectType", getDetectType())
            .append("inputData", getInputData())
            .append("detectRes", getDetectRes())
            .append("createTime", getCreateTime())
            .append("createName", getCreateName())
            .append("createrID", getCreaterID())
            .toString();
    }
}
